package cn.laowen.org.domain;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.laowen.basic.domain.BasicDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author laowen
 * @since 2022-06-12
 */
@Data
public class Shop extends BasicDomain{

    private static final long serialVersionUID = 1L;

    @Excel(name = "店铺名字" ,orderNum = "1", width = 30, isImportField = "true_st")
    private String name;
    @Excel(name = "联系电话" ,orderNum = "1", width = 30, isImportField = "true_st")
    private String tel;
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    @Excel(name = "注册时间" ,orderNum = "1", width = 30, isImportField = "true_st",exportFormat="yyyy-MM-dd")
    private Date registerTime = new Date();
    /**
     * 0待审核 1审核通过 2驳回  -1拒绝  3待激活  4已激活
     */
    @Excel(name = "审核状态" ,replace = { "待审核_0", "审核通过_1","驳回_2","拒绝_-1","已激活_4"},orderNum = "1", width = 30, isImportField = "true_st")
    private Integer state = 0;
    @Excel(name = "店铺地址" ,orderNum = "1", width = 30, isImportField = "true_st")
    private String address;
    @Excel(name = "店招logo" ,orderNum = "1", width = 30, isImportField = "true_st")
    private String logo;



    private Long adminId;
    //店铺管理人
    private Employee admin;

    //店铺审核日志
    private List<ShopAuditLog> auditLogs = new ArrayList<>();

}
